from configparser import ConfigParser
from common.project_path import *


class ReadConfig2(ConfigParser):

    def __init__(self, file_name):
        super().__init__()
        self.read(file_name, encoding="utf_8")


if __name__ == '__main__':
    rc = ReadConfig2(config_path)
    print(rc.get("mysql", "host"))
